import type { ResolutionModel } from '@/api/modules/esl/model';
import type { Rule } from 'ant-design-vue/es/form';

const formObj: ResolutionModel = {
  color: '',
  scale: 0,
  dpi: 0,
  flip: 0,
  description: '',
  resolutionId: '',
  width: 0,
  height: 0,
  createTime: '',
  updateTime: '',
};
export const form = ref<ResolutionModel>({
  ...formObj,
});

export const formRef = ref();

export const resetForm = () => {
  form.value = {
    ...formObj,
  };
};
export const formRules: Record<string, Rule[]> = {};
